import Taro, {Component, Config} from "@tarojs/taro";
import {View} from "@tarojs/components";
import {inject, observer} from '@tarojs/mobx'
import {IStoreProps} from '../../store/Stores'
import {getRuntime} from '../../utils/common'

import './index.less'
import  '../mall/mall.less'

// 收货地址
interface IHomeProps extends IStoreProps {}

@inject("stores")
@observer
class Company extends Component<IHomeProps> {
  constructor(props) {
    super(props)
  }

  config: Config = {
    navigationBarTitleText: '公司地址'
  }

  handelRouter(url: string = '/pages/index/index'): void {
    getRuntime().navigateTo(url)
  }

  state = {
    address: [],
    currentAddressId: null, // 默认为用户设置的默认地址
  }

  com(): void {
  }

  render() {
    return (
      <View>
       公司地址
      </View>
    )
  }
}

export default Company
